package com.li.dao;

import com.li.pojo.News;
import com.li.pojo.NewsDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface NewsMapper {
    public NewsDto selectOne(int id);
    public List<NewsDto> selectNews(Map<String,Object> map);
    public long count(Map<String,Object> map);
    public int updateNews(@Param("news")News news);
    public int addNews(@Param("news") News news);
    public int deleteNews(List<Integer> ids);
    public int editNews(@Param("newsDto") NewsDto newsDto);
}
